using System.Collections.Generic;
using CommonLibrary.Model;

namespace CommonLibrary.BLL
{
    public class UserInfo
    {
        public static bool Exsits(int UserID)
        {
            CommonLibrary.DAL.UserInfo dal = new CommonLibrary.DAL.UserInfo();
            return dal.Exsits(UserID);
        }
        public static bool Insert(UserInfoInfo UserInfo)
        {
            CommonLibrary.DAL.UserInfo dal = new CommonLibrary.DAL.UserInfo();
            return dal.Insert(UserInfo);
        }
        public static bool Update(UserInfoInfo UserInfo)
        {
            CommonLibrary.DAL.UserInfo dal = new CommonLibrary.DAL.UserInfo();
            return dal.Update(UserInfo);
        }
        public static bool Delete(int UserID)
        {
            CommonLibrary.DAL.UserInfo dal = new CommonLibrary.DAL.UserInfo();
            return dal.Delete(UserID);
        }
        public static UserInfoInfo GetUserInfo(int UserID)
        {
            CommonLibrary.DAL.UserInfo dal = new CommonLibrary.DAL.UserInfo();
            return dal.GetUserInfo(UserID);
        }
        public static List<UserInfoInfo> GetList(string StrWhere)
        {
            CommonLibrary.DAL.UserInfo dal = new CommonLibrary.DAL.UserInfo();
            return dal.GetList(StrWhere);
        }
    }
}